package com.stylefeng.guns.rest.common.persistence.dao;


import com.stylefeng.guns.rest.common.persistence.model.LiveAccount;
import com.stylefeng.guns.rest.common.persistence.model.LiveAccountBO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
@Repository
public interface LiveAccountMapper {
	int insertSelective(LiveAccount record);

	LiveAccount selectByPrimaryKey(Integer id);

	LiveAccount selectByAccount(String account);

	LiveAccount selectByToken(String token);

	LiveAccountBO login(@Param("account") String account,@Param("password") String password);

	LiveAccountBO tokenLogin(String token);

	int updateByPrimaryKeySelective(LiveAccount record);

	boolean isExist(String token);

	LiveAccountBO queryByToken(String token);

	boolean isVip(String account);

}